package com.tertyshniy.portlet.model.services;

import com.tertyshniy.portlet.model.dao.FakeDataDaoImpl;
import com.tertyshniy.portlet.model.domain.FakeData;
import org.springframework.stereotype.Service;


@Service
public class FakeDataService {

    FakeDataDaoImpl fakeDataDao = new FakeDataDaoImpl();

    /**
          * Creates FakeData object
          * @param id   id of the created FakeData object
          * @param name  name of the created FakeData object
          * @param num   some number for the new object
          * @return new FakeData object
          */
    public FakeData createFakeData(String id,String name,String num){

          return fakeDataDao.createFakeData(id,name,num);
      }
          /**
          * Finds FakeData object by ID
          * @param id   id of the created FakeData object
          * @return FakeData object with  necessary id
          */
      public FakeData findFakeData(String id){
          return fakeDataDao.findFakeData(id);
      }
           /**
          * removes FakeData object by id
          * @param id     id of the removed FakeData object
          */
      public void removeFakeData(String id){

          fakeDataDao.removeFakeData(id);

      }


  }

